{% extends "store/index2.html" %}

{% block canvas %}
<h3>Login</h3>

<!-- 
	form.erros.authenticate is an entry in the errors map
	it contains the message to display in case of authentication problem
 -->
{% if form.errors.authenticate %}
<p>{{form.errors.authenticate}}</p>
{% endif %}
<form method="post" action="{% url login %}">
{% csrf_token %}
<table>
<tr><td><ul>{% for error in form.username.errors %}<li>{{error}}</li></ul>{% endfor %}</td></tr>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr><td><ul>{% for error in form.username.errors %}<li>{{error}}</li></ul>{% endfor %}</td></tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
<a href="/retailstore/login/register_render.html" >Register</a>
{% endblock %}


